home *** CD-ROM | disk | FTP | other *** search
Text File | 1992-01-29 | 40.0 KB | 1,213 lines |
- Newsgroups: comp.sources.misc
- From: dvadura@plg.waterloo.edu (Dennis Vadura)
- Subject: v27i127: dmake - dmake Version 3.8, Part26/41
- Message-ID: <1992Jan28.214736.19941@sparky.imd.sterling.com>
- X-Md4-Signature: 60b9cb98c7e997c4e4425558585dd3e2
- Date: Tue, 28 Jan 1992 21:47:36 GMT
- Approved: kent@sparky.imd.sterling.com
-
- Submitted-by: dvadura@plg.waterloo.edu (Dennis Vadura)
- Posting-number: Volume 27, Issue 127
- Archive-name: dmake/part26
- Environment: Atari-ST, Coherent, Mac, MSDOS, OS/2, UNIX
- Supersedes: dmake: Volume 19, Issue 22-58
-
- ---- Cut Here and feed the following to sh ----
- # this is dmake.shar.26 (part 26 of a multipart archive)
- # do not concatenate these parts, unpack them in order with /bin/sh
- # file dmake/msdos/tccdos/mkswp.bat continued
- #
- if test ! -r _shar_seq_.tmp; then
- echo 'Please unpack part 1 first!'
- exit 1
- fi
- (read Scheck
- if test "$Scheck" != 26; then
- echo Please unpack part "$Scheck" next!
- exit 1
- else
- exit 0
- fi
- ) < _shar_seq_.tmp || exit 1
- if test -f _shar_wnt_.tmp; then
- sed 's/^X//' << 'SHAR_EOF' >> 'dmake/msdos/tccdos/mkswp.bat' &&
- tcc -c -I. -Imsdos -Imsdos\tccdos -f- -d -O -N- -w-nod -ml rulparse.c
- copy rulparse.obj objects
- del rulparse.obj
- tcc -c -I. -Imsdos -Imsdos\tccdos -f- -d -O -N- -w-nod -ml percent.c
- copy percent.obj objects
- del percent.obj
- tcc -c -I. -Imsdos -Imsdos\tccdos -f- -d -O -N- -w-nod -ml function.c
- copy function.obj objects
- del function.obj
- tcc -c -I. -Imsdos -Imsdos\tccdos -f- -d -O -N- -w-nod -ml msdos\ruletab.c
- copy ruletab.obj objects
- del ruletab.obj
- tcc -c -I. -Imsdos -Imsdos\tccdos -f- -d -O -N- -w-nod -ml msdos\dirbrk.c
- copy dirbrk.obj objects
- del dirbrk.obj
- tcc -c -I. -Imsdos -Imsdos\tccdos -f- -d -O -N- -w-nod -ml msdos\runargv.c
- copy runargv.obj objects
- del runargv.obj
- tcc -c -I. -Imsdos -Imsdos\tccdos -f- -d -O -N- -w-nod -ml msdos\arlib.c
- copy arlib.obj objects
- del arlib.obj
- tcc -c -I. -Imsdos -Imsdos\tccdos -f- -d -O -N- -w-nod -ml msdos\_chdir.c
- copy _chdir.obj objects
- del _chdir.obj
- tcc -c -I. -Imsdos -Imsdos\tccdos -f- -d -O -N- -w-nod -ml msdos\switchar.c
- copy switchar.obj objects
- del switchar.obj
- tcc -c -I. -Imsdos -Imsdos\tccdos -f- -d -O -N- -w-nod -ml msdos\rmprq.c
- copy rmprq.obj objects
- del rmprq.obj
- tcc -c -I. -Imsdos -Imsdos\tccdos -f- -d -O -N- -w-nod -ml msdos\find.c
- copy find.obj objects
- del find.obj
- tcc -c -I. -Imsdos -Imsdos\tccdos -f- -d -O -N- -w-nod -ml msdos\spawn.c
- copy spawn.obj objects
- del spawn.obj
- tcc -c -I. -Imsdos -Imsdos\tccdos -f- -d -O -N- -w-nod -ml msdos\tccdos\tempnam.c
- copy tempnam.obj objects
- del tempnam.obj
- tcc -c -I. -Imsdos -Imsdos\tccdos -f- -d -O -N- -w-nod -ml msdos\tccdos\utime.c
- copy utime.obj objects
- del utime.obj
- copy msdos\tccdos\startup.mk startup.mk
- tlink @msdos\tccdos\objswp.rsp,dmake.exe,NUL.MAP,@msdos\tccdos\libswp.rsp
- SHAR_EOF
- chmod 0640 dmake/msdos/tccdos/mkswp.bat ||
- echo 'restore of dmake/msdos/tccdos/mkswp.bat failed'
- Wc_c="`wc -c < 'dmake/msdos/tccdos/mkswp.bat'`"
- test 3698 -eq "$Wc_c" ||
- echo 'dmake/msdos/tccdos/mkswp.bat: original size 3698, current size' "$Wc_c"
- rm -f _shar_wnt_.tmp
- fi
- # ============= dmake/msdos/tccdos/obj.rsp ==============
- if test -f 'dmake/msdos/tccdos/obj.rsp' -a X"$1" != X"-c"; then
- echo 'x - skipping dmake/msdos/tccdos/obj.rsp (File already exists)'
- rm -f _shar_wnt_.tmp
- else
- > _shar_wnt_.tmp
- sed 's/^X//' << 'SHAR_EOF' > 'dmake/msdos/tccdos/obj.rsp' &&
- d:\cc\tcc\lib\c0l.obj+
- objects\infer.obj+
- objects\make.obj+
- objects\stat.obj+
- objects\expand.obj+
- objects\dmstring.obj+
- objects\hash.obj+
- objects\dag.obj+
- objects\dmake.obj+
- objects\path.obj+
- objects\imacs.obj+
- objects\sysintf.obj+
- objects\parse.obj+
- objects\getinp.obj+
- objects\quit.obj+
- objects\state.obj+
- objects\basename.obj+
- objects\dmdump.obj+
- objects\macparse.obj+
- objects\rulparse.obj+
- objects\percent.obj+
- objects\function.obj+
- objects\ruletab.obj+
- objects\dirbrk.obj+
- objects\runargv.obj+
- objects\arlib.obj+
- objects\_chdir.obj+
- objects\switchar.obj+
- objects\rmprq.obj+
- objects\tee.obj+
- objects\tempnam.obj+
- objects\utime.obj
- SHAR_EOF
- chmod 0640 dmake/msdos/tccdos/obj.rsp ||
- echo 'restore of dmake/msdos/tccdos/obj.rsp failed'
- Wc_c="`wc -c < 'dmake/msdos/tccdos/obj.rsp'`"
- test 635 -eq "$Wc_c" ||
- echo 'dmake/msdos/tccdos/obj.rsp: original size 635, current size' "$Wc_c"
- rm -f _shar_wnt_.tmp
- fi
- # ============= dmake/msdos/tccdos/objswp.rsp ==============
- if test -f 'dmake/msdos/tccdos/objswp.rsp' -a X"$1" != X"-c"; then
- echo 'x - skipping dmake/msdos/tccdos/objswp.rsp (File already exists)'
- rm -f _shar_wnt_.tmp
- else
- > _shar_wnt_.tmp
- sed 's/^X//' << 'SHAR_EOF' > 'dmake/msdos/tccdos/objswp.rsp' &&
- d:\cc\tcc\lib\c0l.obj+
- objects\exec.obj+
- objects\infer.obj+
- objects\make.obj+
- objects\stat.obj+
- objects\expand.obj+
- objects\dmstring.obj+
- objects\hash.obj+
- objects\dag.obj+
- objects\dmake.obj+
- objects\path.obj+
- objects\imacs.obj+
- objects\sysintf.obj+
- objects\parse.obj+
- objects\getinp.obj+
- objects\quit.obj+
- objects\state.obj+
- objects\basename.obj+
- objects\dmdump.obj+
- objects\macparse.obj+
- objects\rulparse.obj+
- objects\percent.obj+
- objects\function.obj+
- objects\ruletab.obj+
- objects\dirbrk.obj+
- objects\runargv.obj+
- objects\arlib.obj+
- objects\_chdir.obj+
- objects\switchar.obj+
- objects\rmprq.obj+
- objects\find.obj+
- objects\spawn.obj+
- objects\tempnam.obj+
- objects\utime.obj
- SHAR_EOF
- chmod 0640 dmake/msdos/tccdos/objswp.rsp ||
- echo 'restore of dmake/msdos/tccdos/objswp.rsp failed'
- Wc_c="`wc -c < 'dmake/msdos/tccdos/objswp.rsp'`"
- test 673 -eq "$Wc_c" ||
- echo 'dmake/msdos/tccdos/objswp.rsp: original size 673, current size' "$Wc_c"
- rm -f _shar_wnt_.tmp
- fi
- # ============= dmake/msdos/tccdos/public.h ==============
- if test -f 'dmake/msdos/tccdos/public.h' -a X"$1" != X"-c"; then
- echo 'x - skipping dmake/msdos/tccdos/public.h (File already exists)'
- rm -f _shar_wnt_.tmp
- else
- > _shar_wnt_.tmp
- sed 's/^X//' << 'SHAR_EOF' > 'dmake/msdos/tccdos/public.h' &&
- /* RCS -- $Header$
- -- WARNING -- This file is AUTOMATICALLY GENERATED DO NOT EDIT IT
- --
- -- SYNOPSIS -- Local functions exported to be visible by others.
- --
- -- DESCRIPTION
- -- This file is generated by 'genpub'. Function declarations
- -- that appear in this file are extracted by 'genpub' from
- -- source files. Any function in the source file whose definition
- -- appears like:
- --
- -- PUBLIC return_type
- -- function( arg_list );
- -- type_expr1 arg1;
- -- ...
- --
- -- has its definition extracted and a line of the form:
- --
- -- return_type function ANSI((type_expr1,type_expr2,...));
- --
- -- entered into the output file.
- --
- -- AUTHOR
- -- Dennis Vadura, dvadura@watdragon.uwaterloo.ca
- -- CS DEPT, University of Waterloo, Waterloo, Ont., Canada
- --
- -- COPYRIGHT
- -- Copyright (c) 1990 by Dennis Vadura. All rights reserved.
- --
- -- This program is free software; you can redistribute it and/or
- -- modify it under the terms of the GNU General Public License
- -- (version 1), as published by the Free Software Foundation, and
- -- found in the file 'LICENSE' included with this distribution.
- --
- -- This program is distributed in the hope that it will be useful,
- -- but WITHOUT ANY WARRANTY; without even the implied warrant of
- -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- -- GNU General Public License for more details.
- --
- -- You should have received a copy of the GNU General Public License
- -- along with this program; if not, write to the Free Software
- -- Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
- --
- -- LOG
- -- $Log$
- */
- X
- #ifndef _DMAKE_PUBLIC_h
- #define _DMAKE_PUBLIC_h
- X
- void Infer_recipe ANSI((CELLPTR, CELLPTR));
- int Make_targets ANSI(());
- int Exec_commands ANSI((CELLPTR));
- void Print_cmnd ANSI((char *, int, int));
- void Pop_dir ANSI((int));
- void Append_line ANSI((char *, int, FILE *, char *, int, int));
- void Stat_target ANSI((CELLPTR, int));
- char * Expand ANSI((char *));
- char * Apply_edit ANSI((char *, char *, char *, int, int));
- void Map_esc ANSI((char *));
- char* Apply_modifiers ANSI((int, char *));
- char* Tokenize ANSI((char *, char *));
- char * _strjoin ANSI((char *, char *, int, int));
- char * _stradd ANSI((char *, char *, int));
- char * _strapp ANSI((char *, char *));
- char * _strdup ANSI((char *));
- char * _strdup2 ANSI((char *));
- char * _strpbrk ANSI((char *, char *));
- char * _strspn ANSI((char *, char *));
- char * _strstr ANSI((char *, char *));
- char * _substr ANSI((char *, char *));
- uint16 Hash ANSI((char *, uint32 *));
- HASHPTR Get_name ANSI((char *, HASHPTR *, int));
- HASHPTR Search_table ANSI((HASHPTR *, char *, uint16 *, uint32 *));
- HASHPTR Def_macro ANSI((char *, char *, int));
- CELLPTR Def_cell ANSI((char *));
- LINKPTR Add_prerequisite ANSI((CELLPTR, CELLPTR, int, int));
- void Clear_prerequisites ANSI((CELLPTR));
- int Test_circle ANSI((CELLPTR, int));
- STRINGPTR Def_recipe ANSI((char *, STRINGPTR, int, int));
- t_attr Rcp_attribute ANSI((char *));
- int main ANSI((int, char **));
- FILE * Openfile ANSI((char *, int, int));
- FILE * Closefile ANSI(());
- FILE * Search_file ANSI((char *, char **));
- char * Filename ANSI(());
- int Nestlevel ANSI(());
- void No_ram ANSI(());
- int Usage ANSI((int));
- int Version ANSI(());
- char * Get_suffix ANSI((char *));
- char * Build_path ANSI((char *, char *));
- void Make_rules ANSI(());
- void Create_macro_vars ANSI(());
- time_t Do_stat ANSI((char *, char *, char **));
- int Do_touch ANSI((char *, char *, char **));
- void Void_lib_cache ANSI((char *, char *));
- time_t Do_time ANSI(());
- int Do_cmnd ANSI((char *, int, int, CELLPTR, int, int, int));
- char ** Pack_argv ANSI((int, int, char *));
- char * Read_env_string ANSI((char *));
- int Write_env_string ANSI((char *, char *));
- void ReadEnvironment ANSI(());
- void Catch_signals ANSI((void (*)()));
- void Clear_signals ANSI(());
- void Prolog ANSI((int, char* []));
- void Epilog ANSI((int));
- char * Get_current_dir ANSI(());
- int Set_dir ANSI((char*));
- char Get_switch_char ANSI(());
- FILE* Get_temp ANSI((char **, char *, int));
- FILE * Start_temp ANSI((char *, CELLPTR, char **));
- void Open_temp_error ANSI((char *, char *));
- void Link_temp ANSI((CELLPTR, FILE *, char *));
- void Close_temp ANSI((CELLPTR, FILE *));
- void Unlink_temp_files ANSI((CELLPTR));
- void Handle_result ANSI((int, int, int, CELLPTR));
- void Update_time_stamp ANSI((CELLPTR));
- int Remove_file ANSI((char *));
- void Parse ANSI((FILE *));
- int Get_line ANSI((char *, FILE *));
- char * Do_comment ANSI((char *, char **, int));
- char * Get_token ANSI((TKSTRPTR, char *, int));
- void Quit ANSI(());
- void Read_state ANSI(());
- void Write_state ANSI(());
- int Check_state ANSI((CELLPTR, STRINGPTR *, int));
- char* basename ANSI((char *));
- void Dump ANSI(());
- void Dump_recipe ANSI((STRINGPTR));
- int Parse_macro ANSI((char *, int));
- int Macro_op ANSI((char *));
- int Parse_rule_def ANSI((int *));
- int Rule_op ANSI((char *));
- void Add_recipe_to_list ANSI((char *, int, int));
- void Bind_rules_to_targets ANSI((int));
- int Set_group_attributes ANSI((char *));
- DFALINKPTR Match_dfa ANSI((char *));
- void Check_circle_dfa ANSI(());
- void Add_nfa ANSI((char *));
- char * Exec_function ANSI((char *));
- int If_root_path ANSI((char *));
- int runargv ANSI((CELLPTR, int, int, int, int, char *));
- void Clean_up_processes ANSI(());
- int Wait_for_child ANSI((int, int));
- time_t seek_arch ANSI((char*, char*));
- int touch_arch ANSI((char*, char*));
- int _chdir ANSI((char *));
- void Remove_prq ANSI((CELLPTR));
- void Hook_std_writes ANSI((char *));
- X
- #endif
- SHAR_EOF
- chmod 0640 dmake/msdos/tccdos/public.h ||
- echo 'restore of dmake/msdos/tccdos/public.h failed'
- Wc_c="`wc -c < 'dmake/msdos/tccdos/public.h'`"
- test 5547 -eq "$Wc_c" ||
- echo 'dmake/msdos/tccdos/public.h: original size 5547, current size' "$Wc_c"
- rm -f _shar_wnt_.tmp
- fi
- # ============= dmake/msdos/tccdos/startup.mk ==============
- if test -f 'dmake/msdos/tccdos/startup.mk' -a X"$1" != X"-c"; then
- echo 'x - skipping dmake/msdos/tccdos/startup.mk (File already exists)'
- rm -f _shar_wnt_.tmp
- else
- > _shar_wnt_.tmp
- sed 's/^X//' << 'SHAR_EOF' > 'dmake/msdos/tccdos/startup.mk' &&
- # MSDOS DMAKE startup file. Customize to suit your needs.
- # Assumes MKS toolkit for the tool commands, and Turbo-C. Change as req'd.
- # See the documentation for a description of internally defined macros.
- #
- # Disable warnings for macros redefined here that were given
- # on the command line.
- __.SILENT := $(.SILENT)
- .SILENT := yes
- X
- # Configuration parameters for DMAKE startup.mk file
- # Set these to NON-NULL if you wish to turn the parameter on.
- _HAVE_RCS := yes # yes => RCS is installed.
- _HAVE_SCCS := # yes => SCCS is installed.
- X
- # Applicable suffix definitions
- A := .lib # Libraries
- E := .exe # Executables
- F := .for # Fortran
- O := .obj # Objects
- P := .pas # Pascal
- S := .asm # Assembler sources
- V := # RCS suffix
- X
- # See if these are defined
- TMPDIR := $(ROOTDIR)/tmp
- .IMPORT .IGNORE : TMPDIR SHELL COMSPEC
- X
- # Recipe execution configurations
- # First set SHELL, If it is not defined, use COMSPEC, otherwise
- # it is assumed to be MKS Korn SHELL.
- .IF $(SHELL) == $(NULL)
- .IF $(COMSPEC) == $(NULL)
- X SHELL := $(ROOTDIR)/bin/sh$E
- .ELSE
- X SHELL := $(COMSPEC)
- .END
- .END
- GROUPSHELL := $(SHELL)
- X
- # Now set remaining arguments depending on which SHELL we
- # are going to use. COMSPEC (assumed to be command.com) or
- # MKS Korn Shell.
- .IF $(SHELL)==$(COMSPEC)
- X SHELLFLAGS := $(SWITCHAR)c
- X GROUPFLAGS := $(SHELLFLAGS)
- X SHELLMETAS := *"?<>
- X GROUPSUFFIX := .bat
- X DIRSEPSTR := \\
- X DIVFILE = $(TMPFILE:s,/,\)
- .ELSE
- X SHELLFLAGS := -c
- X GROUPFLAGS :=
- X SHELLMETAS := *"?<>|()&][$$\#`'
- X GROUPSUFFIX := .ksh
- X .MKSARGS := yes
- X DIVFILE = $(TMPFILE:s,/,${DIVSEP_shell_${USESHELL}})
- X DIVSEP_shell_yes := \\\
- X DIVSEP_shell_no := \\
- .END
- X
- # Standard C-language command names and flags
- X CC := tcc # C-compiler and flags
- X CFLAGS +=
- X
- X AS := tasm # Assembler and flags
- X ASFLAGS +=
- X
- X LD = tlink # Loader and flags
- X LDFLAGS +=
- X LDLIBS =
- X
- # Definition of $(MAKE) macro for recursive makes.
- X MAKE = $(MAKECMD) $(MFLAGS)
- X
- # Language and Parser generation Tools and their flags
- X YACC := yacc # standard yacc
- X YFLAGS +=
- X YTAB := ytab # yacc output files name stem.
- X
- X LEX := lex # standard lex
- X LFLAGS +=
- X LEXYY := lex_yy # lex output file
- X
- # Other Compilers, Tools and their flags
- X PC := tpc # pascal compiler
- X RC := anyf77 # ratfor compiler
- X FC := anyf77 # fortran compiler
- X
- X CO := co # check out for RCS
- X COFLAGS += -q
- X
- X AR := ar # archiver
- X ARFLAGS+= ruv
- X
- X RM := rm # remove a file command
- X RMFLAGS +=
- X
- # Implicit generation rules for making inferences.
- # We don't provide .yr or .ye rules here. They're obsolete.
- # Rules for making *$O
- X %$O : %.c ; $(CC) $(CFLAGS) -c $<
- X %$O : %$P ; $(PC) $(PFLAGS) -c $<
- X %$O : %$S ; $(AS) $(ASFLAGS) $(<:s,/,\);
- X %$O : %.cl ; class -c $<
- X %$O : %.e %.r %.F %$F ; $(FC) $(RFLAGS) $(EFLAGS) $(FFLAGS) -c $<
- X
- # Executables
- X %$E : %$O ; $(CC) $(LDFLAGS) -o$@ $< $(LDLIBS)
- X
- # lex and yacc rules
- X %.c : %.y ; $(YACC) $(YFLAGS) $<; mv $(YTAB).c $@
- X %.c : %.l ; $(LEX) $(LFLAGS) $<; mv $(LEXYY).c $@
- X
- # RCS support
- .IF $(_HAVE_RCS)
- X % : $$(@:d)RCS/$$(@:f)$V;- $(CO) $(COFLAGS) $@
- X .NOINFER : $$(@:d)RCS/$$(@:f)$V
- .END
- X
- # SCCS support
- .IF $(_HAVE_SCCS)
- X % : s.% ; get $<
- X .NOINFER : s.%
- .END
- X
- # Recipe to make archive files.
- %$A :
- [
- X $(AR) $(ARFLAGS) $@ $?
- X $(RM) $(RMFLAGS) $?
- ]
- X
- # DMAKE uses this recipe to remove intermediate targets
- .REMOVE :; $(RM) -f $<
- X
- # AUGMAKE extensions for SYSV compatibility
- @B = $(@:b)
- @D = $(@:d)
- @F = $(@:f)
- "*B" = $(*:b)
- "*D" = $(*:d)
- "*F" = $(*:f)
- <B = $(<:b)
- <D = $(<:d)
- <F = $(<:f)
- ?B = $(?:b)
- ?F = $(?:f)
- ?D = $(?:d)
- X
- # Turn warnings back to previous setting.
- .SILENT := $(__.SILENT)
- X
- # Local init file if any, gets parsed before user makefile
- .INCLUDE .IGNORE: "_startup.mk"
- SHAR_EOF
- chmod 0640 dmake/msdos/tccdos/startup.mk ||
- echo 'restore of dmake/msdos/tccdos/startup.mk failed'
- Wc_c="`wc -c < 'dmake/msdos/tccdos/startup.mk'`"
- test 3801 -eq "$Wc_c" ||
- echo 'dmake/msdos/tccdos/startup.mk: original size 3801, current size' "$Wc_c"
- rm -f _shar_wnt_.tmp
- fi
- # ============= dmake/msdos/tccdos/tempnam.c ==============
- if test -f 'dmake/msdos/tccdos/tempnam.c' -a X"$1" != X"-c"; then
- echo 'x - skipping dmake/msdos/tccdos/tempnam.c (File already exists)'
- rm -f _shar_wnt_.tmp
- else
- > _shar_wnt_.tmp
- sed 's/^X//' << 'SHAR_EOF' > 'dmake/msdos/tccdos/tempnam.c' &&
- /*LINTLIBRARY*/
- #include <stdio.h>
- #include <string.h>
- #include <stdlib.h>
- #include <dos.h>
- X
- #if defined(max)
- # undef max
- #endif
- #define max(A,B) (((A)<(B))?(B):(A))
- X
- extern char *mktemp();
- extern int access();
- int _access();
- X
- /* Turbo C stdio.h doesn't define P_tmpdir, so let's do it here */
- /* Under DOS leave the default tmpdir pointing here! */
- static char *P_tmpdir = "";
- X
- char *
- tempnam(dir, prefix)
- char *dir; /* use this directory please (if non-NULL) */
- char *prefix; /* use this (if non-NULL) as filename prefix */
- {
- X static int count = 0;
- X register char *p, *q, *tmpdir;
- X int tl=0, dl=0, pl;
- X char buf[30];
- X
- X pl = strlen(P_tmpdir);
- X
- X if( (tmpdir = getenv("TMPDIR")) != NULL ) tl = strlen(tmpdir);
- X if( dir != NULL ) dl = strlen(dir);
- X
- X if( (p = malloc((unsigned)(max(max(dl,tl),pl)+13))) == NULL )
- X return(NULL);
- X
- X *p = '\0';
- X
- X if( (tl == 0) || (_access( strcpy(p, tmpdir), 0) != 0) )
- X if( (dl == 0) || (_access( strcpy(p, dir), 0) != 0) )
- X if( _access( strcpy(p, P_tmpdir), 0) != 0 )
- X if( !prefix )
- X prefix = "tp";
- X
- X if(prefix)
- X {
- X *(p+strlen(p)+2) = '\0';
- X (void)strncat(p, prefix, 2);
- X }
- X
- X sprintf( buf, "%08x", _psp );
- X buf[6]='\0';
- X (void)strcat(p, buf );
- X sprintf( buf, "%04d", count++ );
- X q=p+strlen(p)-6;
- X *q++ = buf[0]; *q++ = buf[1];
- X *q++ = buf[2]; *q++ = buf[3];
- X
- X if( (q = strrchr(p,'.')) != NULL ) *q = '\0';
- X
- X return(p);
- }
- X
- X
- X
- _access( name, flag )
- char *name;
- int flag;
- {
- X char *p;
- X int r;
- X
- X if( name == NULL || !*name ) return(1); /* NULL dir means current dir */
- X r = access( name, flag );
- X p = name+strlen(name)-1;
- X if(*p != '/' && *p != '\\') strcat( p, "/" );
- X
- X return( r );
- }
- SHAR_EOF
- chmod 0640 dmake/msdos/tccdos/tempnam.c ||
- echo 'restore of dmake/msdos/tccdos/tempnam.c failed'
- Wc_c="`wc -c < 'dmake/msdos/tccdos/tempnam.c'`"
- test 1724 -eq "$Wc_c" ||
- echo 'dmake/msdos/tccdos/tempnam.c: original size 1724, current size' "$Wc_c"
- rm -f _shar_wnt_.tmp
- fi
- # ============= dmake/msdos/tccdos/utime.c ==============
- if test -f 'dmake/msdos/tccdos/utime.c' -a X"$1" != X"-c"; then
- echo 'x - skipping dmake/msdos/tccdos/utime.c (File already exists)'
- rm -f _shar_wnt_.tmp
- else
- > _shar_wnt_.tmp
- sed 's/^X//' << 'SHAR_EOF' > 'dmake/msdos/tccdos/utime.c' &&
- /*
- ** change access and modify times of file
- */
- #include <sys/stat.h>
- #include <fcntl.h>
- #include <time.h>
- X
- int
- utime(name, timep)/*
- ====================
- X Broken for turbo C it only sets the file time to the current time by
- X touching a character in the file */
- char* name;
- time_t timep[2];
- {
- X struct stat buf;
- X int fil;
- X char data;
- X
- X if (stat(name, &buf) != 0)
- X return (-1);
- X if (buf.st_size != 0) {
- X if ((fil = open(name, O_RDWR, S_IWRITE)) < 0)
- X return (-1);
- X if (read(fil, &data, 1) < 1) {
- X close(fil);
- X return (-1);
- X }
- X lseek(fil, 0L, 0);
- X if (write(fil, &data, 1) < 1) {
- X close(fil);
- X return (-1);
- X }
- X close(fil);
- X return (0);
- X } else if ((fil = creat(name, S_IWRITE)) < 0) {
- X return (-1);
- X } else {
- X close(fil);
- X return (0);
- X }
- }
- SHAR_EOF
- chmod 0640 dmake/msdos/tccdos/utime.c ||
- echo 'restore of dmake/msdos/tccdos/utime.c failed'
- Wc_c="`wc -c < 'dmake/msdos/tccdos/utime.c'`"
- test 767 -eq "$Wc_c" ||
- echo 'dmake/msdos/tccdos/utime.c: original size 767, current size' "$Wc_c"
- rm -f _shar_wnt_.tmp
- fi
- # ============= dmake/msdos/tee.c ==============
- if test -f 'dmake/msdos/tee.c' -a X"$1" != X"-c"; then
- echo 'x - skipping dmake/msdos/tee.c (File already exists)'
- rm -f _shar_wnt_.tmp
- else
- > _shar_wnt_.tmp
- sed 's/^X//' << 'SHAR_EOF' > 'dmake/msdos/tee.c' &&
- /* RCS -- $Header: /u2/dvadura/src/generic/dmake/src/msdos/tee.c,v 1.1 1992/01/24 03:27:37 dvadura Exp $
- -- SYNOPSIS -- Hook_std_writes() dummy call for non swapping MSDOS versions.
- --
- -- DESCRIPTION
- --
- -- AUTHOR
- -- Dennis Vadura, dvadura@watdragon.uwaterloo.ca
- -- CS DEPT, University of Waterloo, Waterloo, Ont., Canada
- --
- -- COPYRIGHT
- -- Copyright (c) 1990 by Dennis Vadura. All rights reserved.
- --
- -- This program is free software; you can redistribute it and/or
- -- modify it under the terms of the GNU General Public License
- -- (version 1), as published by the Free Software Foundation, and
- -- found in the file 'LICENSE' included with this distribution.
- --
- -- This program is distributed in the hope that it will be useful,
- -- but WITHOUT ANY WARRANTY; without even the implied warrant of
- -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- -- GNU General Public License for more details.
- --
- -- You should have received a copy of the GNU General Public License
- -- along with this program; if not, write to the Free Software
- -- Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
- --
- -- LOG
- -- $Log: tee.c,v $
- X * Revision 1.1 1992/01/24 03:27:37 dvadura
- X * dmake Version 3.8, Initial revision
- X *
- */
- X
- #include "extern.h"
- X
- PUBLIC void
- Hook_std_writes( file )
- char *file;
- {
- }
- SHAR_EOF
- chmod 0640 dmake/msdos/tee.c ||
- echo 'restore of dmake/msdos/tee.c failed'
- Wc_c="`wc -c < 'dmake/msdos/tee.c'`"
- test 1383 -eq "$Wc_c" ||
- echo 'dmake/msdos/tee.c: original size 1383, current size' "$Wc_c"
- rm -f _shar_wnt_.tmp
- fi
- # ============= dmake/msdos/ztcdos/config.h ==============
- if test ! -d 'dmake/msdos/ztcdos'; then
- mkdir 'dmake/msdos/ztcdos'
- fi
- if test -f 'dmake/msdos/ztcdos/config.h' -a X"$1" != X"-c"; then
- echo 'x - skipping dmake/msdos/ztcdos/config.h (File already exists)'
- rm -f _shar_wnt_.tmp
- else
- > _shar_wnt_.tmp
- sed 's/^X//' << 'SHAR_EOF' > 'dmake/msdos/ztcdos/config.h' &&
- /* RCS -- $Header: /u2/dvadura/src/generic/dmake/src/msdos/ztcdos/config.h,v 1.1 1992/01/24 03:27:49 dvadura Exp $
- -- SYNOPSIS -- Configurarion include file.
- --
- -- DESCRIPTION
- -- There is one of these for each specific machine configuration.
- -- It can be used to further tweek the machine specific sources
- -- so that they compile.
- --
- -- AUTHOR
- -- Dennis Vadura, dvadura@watdragon.uwaterloo.ca
- -- CS DEPT, University of Waterloo, Waterloo, Ont., Canada
- --
- -- COPYRIGHT
- -- Copyright (c) 1990 by Dennis Vadura. All rights reserved.
- --
- -- This program is free software; you can redistribute it and/or
- -- modify it under the terms of the GNU General Public License
- -- (version 1), as published by the Free Software Foundation, and
- -- found in the file 'LICENSE' included with this distribution.
- --
- -- This program is distributed in the hope that it will be useful,
- -- but WITHOUT ANY WARRANTY; without even the implied warrant of
- -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- -- GNU General Public License for more details.
- --
- -- You should have received a copy of the GNU General Public License
- -- along with this program; if not, write to the Free Software
- -- Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
- --
- -- LOG
- -- $Log: config.h,v $
- X * Revision 1.1 1992/01/24 03:27:49 dvadura
- X * dmake Version 3.8, Initial revision
- X *
- */
- X
- /* in sysintf.c: SIGQUIT is used, this is not defined in ZTC */
- #ifndef SIGQUIT
- # define SIGQUIT SIGTERM
- #endif
- X
- /* in sysintf.c: tzset is not supported by ZTC */
- #define tzset()
- X
- /* ZTC uses it's own swapping spawn. */
- #define spawnvpe(a,b,c,d) spawnvp(a,b,c)
- X
- #ifndef CONST
- # define CONST const
- #endif
- X
- #ifndef MSDOS
- # define MSDOS 1
- #endif
- X
- extern unsigned _psp;
- X
- /* a small problem with pointer to voids on some unix machines needs this */
- #define PVOID void *
- SHAR_EOF
- chmod 0640 dmake/msdos/ztcdos/config.h ||
- echo 'restore of dmake/msdos/ztcdos/config.h failed'
- Wc_c="`wc -c < 'dmake/msdos/ztcdos/config.h'`"
- test 1916 -eq "$Wc_c" ||
- echo 'dmake/msdos/ztcdos/config.h: original size 1916, current size' "$Wc_c"
- rm -f _shar_wnt_.tmp
- fi
- # ============= dmake/msdos/ztcdos/config.mk ==============
- if test -f 'dmake/msdos/ztcdos/config.mk' -a X"$1" != X"-c"; then
- echo 'x - skipping dmake/msdos/ztcdos/config.mk (File already exists)'
- rm -f _shar_wnt_.tmp
- else
- > _shar_wnt_.tmp
- sed 's/^X//' << 'SHAR_EOF' > 'dmake/msdos/ztcdos/config.mk' &&
- # This is the ZTC DOS configuration file for DMAKE
- # It simply modifies the values of SRC, and checks to see if
- # OSENVIRONMENT is defined. If so it includes the appropriate
- # config.mk file.
- #
- # It also sets the values of .SOURCE.c and .SOURCE.h to include the local
- # directory.
- #
- osrdir := $(OS)$(DIRSEPSTR)$(OSRELEASE)
- X
- TMPDIR :=
- .EXPORT : TMPDIR
- X
- # Definition of macros for library, and C startup code.
- # Swapping for DOS versions is enabled by default. ZTC will automatically
- # perform swapping to XMS, EMS or disk by including _swapl.obj at link time.
- # To be most effective, _swapl.obj should be the first file linked so we
- # assign it to CSTARTUP if needed.
- .IF $(SWAP) == y
- X CSTARTUP = _swapl.obj
- .END
- X
- # The following sources are required for ZTC
- # The tempnam supplied with ZTC doesn't handle a NULL dir.
- OSR_SRC = tempnam.c environ.c
- .SETDIR=$(osrdir) : $(OSR_SRC)
- X
- SRC += $(OSR_SRC)
- .SOURCE.h : $(osrdir)
- X
- # Local configuration modifications for CFLAGS
- # If you have a 286, you can use -2 or appropriate to get better code,
- # in that case uncomment the line below. (You can also simply set
- # it in the CL environment variable.)
- #CFLAGS += -2
- ASFLAGS += -t -mx $(S_$(MODEL))
- X
- # Redefine this, it isn't needed!
- LDTAIL = ;
- X
- # Debugging libraries
- DB_LDFLAGS += -g
- DB_LDLIBS +=
- X
- # NO Debug ZTC flags:
- #
- X
- CFLAGS += -I$(osrdir) $(C_$(MODEL))
- CFLAGS += -DM_I86=1 -DMSDOS
- CFLAGS += -b # use large compiler
- #CFLAGS += -w # no warnings
- CFLAGS += -mi # integer only
- CFLAGS += -p # no auto-prototyping
- NDB_CFLAGS += -o
- DB_CFLAGS += -g
- X
- # Redefine rule for making our objects, we don't need mv
- %$O : %.c ;% $(CC) -c $(CFLAGS) -o$@ $<
- X
- # See if we modify anything in the lower levels.
- .IF $(OSENVIRONMENT) != $(NULL)
- X .INCLUDE .IGNORE : $(osrdir)$(DIRSEPSTR)$(OSENVIRONMENT)$(DIRSEPSTR)config.mk
- .END
- X
- C_s =
- C_m = -mM
- C_c = -mC
- C_l = -mL
- X
- S_s = -Dmsmall
- S_m = -Dmmedium
- S_c = -Dmcompact
- S_l = -Dmlarge
- SHAR_EOF
- chmod 0640 dmake/msdos/ztcdos/config.mk ||
- echo 'restore of dmake/msdos/ztcdos/config.mk failed'
- Wc_c="`wc -c < 'dmake/msdos/ztcdos/config.mk'`"
- test 1990 -eq "$Wc_c" ||
- echo 'dmake/msdos/ztcdos/config.mk: original size 1990, current size' "$Wc_c"
- rm -f _shar_wnt_.tmp
- fi
- # ============= dmake/msdos/ztcdos/environ.c ==============
- if test -f 'dmake/msdos/ztcdos/environ.c' -a X"$1" != X"-c"; then
- echo 'x - skipping dmake/msdos/ztcdos/environ.c (File already exists)'
- rm -f _shar_wnt_.tmp
- else
- > _shar_wnt_.tmp
- sed 's/^X//' << 'SHAR_EOF' > 'dmake/msdos/ztcdos/environ.c' &&
- /*LINTLIBRARY*/
- #include <stdio.h>
- #include <string.h>
- #include <stdlib.h>
- #include "alloc.h"
- X
- /* ZTC++ doesn't have environ, so we have to create one. */
- X
- extern char *_envptr;
- char **environ = { NULL };
- X
- void
- make_env()
- {
- X int i;
- X char *cp;
- X
- X for (i = 0, cp = _envptr; *cp; i++, cp += strlen(cp)+1)
- X ;
- X
- X TALLOC(environ, i+1, char*);
- X
- X for (i = 0, cp = _envptr; *cp; i++, cp += strlen(cp)+1)
- X environ[i] = cp;
- X
- X return;
- }
- X
- void
- free_env()
- {
- X FREE(environ);
- X
- X return;
- }
- SHAR_EOF
- chmod 0640 dmake/msdos/ztcdos/environ.c ||
- echo 'restore of dmake/msdos/ztcdos/environ.c failed'
- Wc_c="`wc -c < 'dmake/msdos/ztcdos/environ.c'`"
- test 473 -eq "$Wc_c" ||
- echo 'dmake/msdos/ztcdos/environ.c: original size 473, current size' "$Wc_c"
- rm -f _shar_wnt_.tmp
- fi
- # ============= dmake/msdos/ztcdos/lib.rsp ==============
- if test -f 'dmake/msdos/ztcdos/lib.rsp' -a X"$1" != X"-c"; then
- echo 'x - skipping dmake/msdos/ztcdos/lib.rsp (File already exists)'
- rm -f _shar_wnt_.tmp
- else
- > _shar_wnt_.tmp
- sed 's/^X//' << 'SHAR_EOF' > 'dmake/msdos/ztcdos/lib.rsp' &&
- X
- SHAR_EOF
- chmod 0640 dmake/msdos/ztcdos/lib.rsp ||
- echo 'restore of dmake/msdos/ztcdos/lib.rsp failed'
- Wc_c="`wc -c < 'dmake/msdos/ztcdos/lib.rsp'`"
- test 1 -eq "$Wc_c" ||
- echo 'dmake/msdos/ztcdos/lib.rsp: original size 1, current size' "$Wc_c"
- rm -f _shar_wnt_.tmp
- fi
- # ============= dmake/msdos/ztcdos/libswp.rsp ==============
- if test -f 'dmake/msdos/ztcdos/libswp.rsp' -a X"$1" != X"-c"; then
- echo 'x - skipping dmake/msdos/ztcdos/libswp.rsp (File already exists)'
- rm -f _shar_wnt_.tmp
- else
- > _shar_wnt_.tmp
- sed 's/^X//' << 'SHAR_EOF' > 'dmake/msdos/ztcdos/libswp.rsp' &&
- X
- SHAR_EOF
- chmod 0640 dmake/msdos/ztcdos/libswp.rsp ||
- echo 'restore of dmake/msdos/ztcdos/libswp.rsp failed'
- Wc_c="`wc -c < 'dmake/msdos/ztcdos/libswp.rsp'`"
- test 1 -eq "$Wc_c" ||
- echo 'dmake/msdos/ztcdos/libswp.rsp: original size 1, current size' "$Wc_c"
- rm -f _shar_wnt_.tmp
- fi
- # ============= dmake/msdos/ztcdos/mk.bat ==============
- if test -f 'dmake/msdos/ztcdos/mk.bat' -a X"$1" != X"-c"; then
- echo 'x - skipping dmake/msdos/ztcdos/mk.bat (File already exists)'
- rm -f _shar_wnt_.tmp
- else
- > _shar_wnt_.tmp
- sed 's/^X//' << 'SHAR_EOF' > 'dmake/msdos/ztcdos/mk.bat' &&
- md objects
- ztc -c -I. -Imsdos -Imsdos\ztcdos -mL -DM_I86=1 -DMSDOS -b -mi -p -o -oobjects\infer.obj infer.c
- ztc -c -I. -Imsdos -Imsdos\ztcdos -mL -DM_I86=1 -DMSDOS -b -mi -p -o -oobjects\make.obj make.c
- ztc -c -I. -Imsdos -Imsdos\ztcdos -mL -DM_I86=1 -DMSDOS -b -mi -p -o -oobjects\stat.obj stat.c
- ztc -c -I. -Imsdos -Imsdos\ztcdos -mL -DM_I86=1 -DMSDOS -b -mi -p -o -oobjects\expand.obj expand.c
- ztc -c -I. -Imsdos -Imsdos\ztcdos -mL -DM_I86=1 -DMSDOS -b -mi -p -o -oobjects\dmstring.obj dmstring.c
- ztc -c -I. -Imsdos -Imsdos\ztcdos -mL -DM_I86=1 -DMSDOS -b -mi -p -o -oobjects\hash.obj hash.c
- ztc -c -I. -Imsdos -Imsdos\ztcdos -mL -DM_I86=1 -DMSDOS -b -mi -p -o -oobjects\dag.obj dag.c
- ztc -c -I. -Imsdos -Imsdos\ztcdos -mL -DM_I86=1 -DMSDOS -b -mi -p -o -oobjects\dmake.obj dmake.c
- ztc -c -I. -Imsdos -Imsdos\ztcdos -mL -DM_I86=1 -DMSDOS -b -mi -p -o -oobjects\path.obj path.c
- ztc -c -I. -Imsdos -Imsdos\ztcdos -mL -DM_I86=1 -DMSDOS -b -mi -p -o -oobjects\imacs.obj imacs.c
- ztc -c -I. -Imsdos -Imsdos\ztcdos -mL -DM_I86=1 -DMSDOS -b -mi -p -o -oobjects\sysintf.obj sysintf.c
- ztc -c -I. -Imsdos -Imsdos\ztcdos -mL -DM_I86=1 -DMSDOS -b -mi -p -o -oobjects\parse.obj parse.c
- ztc -c -I. -Imsdos -Imsdos\ztcdos -mL -DM_I86=1 -DMSDOS -b -mi -p -o -oobjects\getinp.obj getinp.c
- ztc -c -I. -Imsdos -Imsdos\ztcdos -mL -DM_I86=1 -DMSDOS -b -mi -p -o -oobjects\quit.obj quit.c
- ztc -c -I. -Imsdos -Imsdos\ztcdos -mL -DM_I86=1 -DMSDOS -b -mi -p -o -oobjects\state.obj state.c
- ztc -c -I. -Imsdos -Imsdos\ztcdos -mL -DM_I86=1 -DMSDOS -b -mi -p -o -oobjects\basename.obj basename.c
- ztc -c -I. -Imsdos -Imsdos\ztcdos -mL -DM_I86=1 -DMSDOS -b -mi -p -o -oobjects\dmdump.obj dmdump.c
- ztc -c -I. -Imsdos -Imsdos\ztcdos -mL -DM_I86=1 -DMSDOS -b -mi -p -o -oobjects\macparse.obj macparse.c
- ztc -c -I. -Imsdos -Imsdos\ztcdos -mL -DM_I86=1 -DMSDOS -b -mi -p -o -oobjects\rulparse.obj rulparse.c
- ztc -c -I. -Imsdos -Imsdos\ztcdos -mL -DM_I86=1 -DMSDOS -b -mi -p -o -oobjects\percent.obj percent.c
- ztc -c -I. -Imsdos -Imsdos\ztcdos -mL -DM_I86=1 -DMSDOS -b -mi -p -o -oobjects\function.obj function.c
- ztc -c -I. -Imsdos -Imsdos\ztcdos -mL -DM_I86=1 -DMSDOS -b -mi -p -o -oobjects\ruletab.obj msdos\ruletab.c
- ztc -c -I. -Imsdos -Imsdos\ztcdos -mL -DM_I86=1 -DMSDOS -b -mi -p -o -oobjects\dirbrk.obj msdos\dirbrk.c
- ztc -c -I. -Imsdos -Imsdos\ztcdos -mL -DM_I86=1 -DMSDOS -b -mi -p -o -oobjects\runargv.obj msdos\runargv.c
- ztc -c -I. -Imsdos -Imsdos\ztcdos -mL -DM_I86=1 -DMSDOS -b -mi -p -o -oobjects\arlib.obj msdos\arlib.c
- ztc -c -I. -Imsdos -Imsdos\ztcdos -mL -DM_I86=1 -DMSDOS -b -mi -p -o -oobjects\_chdir.obj msdos\_chdir.c
- ztc -c -I. -Imsdos -Imsdos\ztcdos -mL -DM_I86=1 -DMSDOS -b -mi -p -o -oobjects\switchar.obj msdos\switchar.c
- ztc -c -I. -Imsdos -Imsdos\ztcdos -mL -DM_I86=1 -DMSDOS -b -mi -p -o -oobjects\rmprq.obj msdos\rmprq.c
- ztc -c -I. -Imsdos -Imsdos\ztcdos -mL -DM_I86=1 -DMSDOS -b -mi -p -o -oobjects\tee.obj msdos\tee.c
- ztc -c -I. -Imsdos -Imsdos\ztcdos -mL -DM_I86=1 -DMSDOS -b -mi -p -o -oobjects\tempnam.obj msdos\ztcdos\tempnam.c
- ztc -c -I. -Imsdos -Imsdos\ztcdos -mL -DM_I86=1 -DMSDOS -b -mi -p -o -oobjects\environ.obj msdos\ztcdos\environ.c
- copy msdos\ztcdos\startup.mk startup.mk
- blink @msdos\ztcdos\obj.rsp,dmake.exe,NUL.MAP;
- SHAR_EOF
- chmod 0640 dmake/msdos/ztcdos/mk.bat ||
- echo 'restore of dmake/msdos/ztcdos/mk.bat failed'
- Wc_c="`wc -c < 'dmake/msdos/ztcdos/mk.bat'`"
- test 3232 -eq "$Wc_c" ||
- echo 'dmake/msdos/ztcdos/mk.bat: original size 3232, current size' "$Wc_c"
- rm -f _shar_wnt_.tmp
- fi
- # ============= dmake/msdos/ztcdos/mkswp.bat ==============
- if test -f 'dmake/msdos/ztcdos/mkswp.bat' -a X"$1" != X"-c"; then
- echo 'x - skipping dmake/msdos/ztcdos/mkswp.bat (File already exists)'
- rm -f _shar_wnt_.tmp
- else
- > _shar_wnt_.tmp
- sed 's/^X//' << 'SHAR_EOF' > 'dmake/msdos/ztcdos/mkswp.bat' &&
- md objects
- ztc -c -I. -Imsdos -Imsdos\ztcdos -mL -DM_I86=1 -DMSDOS -b -mi -p -o -oobjects\infer.obj infer.c
- ztc -c -I. -Imsdos -Imsdos\ztcdos -mL -DM_I86=1 -DMSDOS -b -mi -p -o -oobjects\make.obj make.c
- ztc -c -I. -Imsdos -Imsdos\ztcdos -mL -DM_I86=1 -DMSDOS -b -mi -p -o -oobjects\stat.obj stat.c
- ztc -c -I. -Imsdos -Imsdos\ztcdos -mL -DM_I86=1 -DMSDOS -b -mi -p -o -oobjects\expand.obj expand.c
- ztc -c -I. -Imsdos -Imsdos\ztcdos -mL -DM_I86=1 -DMSDOS -b -mi -p -o -oobjects\dmstring.obj dmstring.c
- ztc -c -I. -Imsdos -Imsdos\ztcdos -mL -DM_I86=1 -DMSDOS -b -mi -p -o -oobjects\hash.obj hash.c
- ztc -c -I. -Imsdos -Imsdos\ztcdos -mL -DM_I86=1 -DMSDOS -b -mi -p -o -oobjects\dag.obj dag.c
- ztc -c -I. -Imsdos -Imsdos\ztcdos -mL -DM_I86=1 -DMSDOS -b -mi -p -o -oobjects\dmake.obj dmake.c
- ztc -c -I. -Imsdos -Imsdos\ztcdos -mL -DM_I86=1 -DMSDOS -b -mi -p -o -oobjects\path.obj path.c
- ztc -c -I. -Imsdos -Imsdos\ztcdos -mL -DM_I86=1 -DMSDOS -b -mi -p -o -oobjects\imacs.obj imacs.c
- ztc -c -I. -Imsdos -Imsdos\ztcdos -mL -DM_I86=1 -DMSDOS -b -mi -p -o -oobjects\sysintf.obj sysintf.c
- ztc -c -I. -Imsdos -Imsdos\ztcdos -mL -DM_I86=1 -DMSDOS -b -mi -p -o -oobjects\parse.obj parse.c
- ztc -c -I. -Imsdos -Imsdos\ztcdos -mL -DM_I86=1 -DMSDOS -b -mi -p -o -oobjects\getinp.obj getinp.c
- ztc -c -I. -Imsdos -Imsdos\ztcdos -mL -DM_I86=1 -DMSDOS -b -mi -p -o -oobjects\quit.obj quit.c
- ztc -c -I. -Imsdos -Imsdos\ztcdos -mL -DM_I86=1 -DMSDOS -b -mi -p -o -oobjects\state.obj state.c
- ztc -c -I. -Imsdos -Imsdos\ztcdos -mL -DM_I86=1 -DMSDOS -b -mi -p -o -oobjects\basename.obj basename.c
- ztc -c -I. -Imsdos -Imsdos\ztcdos -mL -DM_I86=1 -DMSDOS -b -mi -p -o -oobjects\dmdump.obj dmdump.c
- ztc -c -I. -Imsdos -Imsdos\ztcdos -mL -DM_I86=1 -DMSDOS -b -mi -p -o -oobjects\macparse.obj macparse.c
- ztc -c -I. -Imsdos -Imsdos\ztcdos -mL -DM_I86=1 -DMSDOS -b -mi -p -o -oobjects\rulparse.obj rulparse.c
- ztc -c -I. -Imsdos -Imsdos\ztcdos -mL -DM_I86=1 -DMSDOS -b -mi -p -o -oobjects\percent.obj percent.c
- ztc -c -I. -Imsdos -Imsdos\ztcdos -mL -DM_I86=1 -DMSDOS -b -mi -p -o -oobjects\function.obj function.c
- ztc -c -I. -Imsdos -Imsdos\ztcdos -mL -DM_I86=1 -DMSDOS -b -mi -p -o -oobjects\ruletab.obj msdos\ruletab.c
- ztc -c -I. -Imsdos -Imsdos\ztcdos -mL -DM_I86=1 -DMSDOS -b -mi -p -o -oobjects\dirbrk.obj msdos\dirbrk.c
- ztc -c -I. -Imsdos -Imsdos\ztcdos -mL -DM_I86=1 -DMSDOS -b -mi -p -o -oobjects\runargv.obj msdos\runargv.c
- ztc -c -I. -Imsdos -Imsdos\ztcdos -mL -DM_I86=1 -DMSDOS -b -mi -p -o -oobjects\arlib.obj msdos\arlib.c
- ztc -c -I. -Imsdos -Imsdos\ztcdos -mL -DM_I86=1 -DMSDOS -b -mi -p -o -oobjects\_chdir.obj msdos\_chdir.c
- ztc -c -I. -Imsdos -Imsdos\ztcdos -mL -DM_I86=1 -DMSDOS -b -mi -p -o -oobjects\switchar.obj msdos\switchar.c
- ztc -c -I. -Imsdos -Imsdos\ztcdos -mL -DM_I86=1 -DMSDOS -b -mi -p -o -oobjects\rmprq.obj msdos\rmprq.c
- ztc -c -I. -Imsdos -Imsdos\ztcdos -mL -DM_I86=1 -DMSDOS -b -mi -p -o -oobjects\tee.obj msdos\tee.c
- ztc -c -I. -Imsdos -Imsdos\ztcdos -mL -DM_I86=1 -DMSDOS -b -mi -p -o -oobjects\tempnam.obj msdos\ztcdos\tempnam.c
- ztc -c -I. -Imsdos -Imsdos\ztcdos -mL -DM_I86=1 -DMSDOS -b -mi -p -o -oobjects\environ.obj msdos\ztcdos\environ.c
- copy msdos\ztcdos\startup.mk startup.mk
- blink @msdos\ztcdos\objswp.rsp,dmake.exe,NUL.MAP;
- SHAR_EOF
- chmod 0640 dmake/msdos/ztcdos/mkswp.bat ||
- echo 'restore of dmake/msdos/ztcdos/mkswp.bat failed'
- Wc_c="`wc -c < 'dmake/msdos/ztcdos/mkswp.bat'`"
- test 3235 -eq "$Wc_c" ||
- echo 'dmake/msdos/ztcdos/mkswp.bat: original size 3235, current size' "$Wc_c"
- rm -f _shar_wnt_.tmp
- fi
- # ============= dmake/msdos/ztcdos/obj.rsp ==============
- if test -f 'dmake/msdos/ztcdos/obj.rsp' -a X"$1" != X"-c"; then
- echo 'x - skipping dmake/msdos/ztcdos/obj.rsp (File already exists)'
- rm -f _shar_wnt_.tmp
- else
- > _shar_wnt_.tmp
- sed 's/^X//' << 'SHAR_EOF' > 'dmake/msdos/ztcdos/obj.rsp' &&
- objects\infer.obj+
- objects\make.obj+
- objects\stat.obj+
- objects\expand.obj+
- objects\dmstring.obj+
- objects\hash.obj+
- objects\dag.obj+
- objects\dmake.obj+
- objects\path.obj+
- objects\imacs.obj+
- objects\sysintf.obj+
- objects\parse.obj+
- objects\getinp.obj+
- objects\quit.obj+
- objects\state.obj+
- objects\basename.obj+
- objects\dmdump.obj+
- objects\macparse.obj+
- objects\rulparse.obj+
- objects\percent.obj+
- objects\function.obj+
- objects\ruletab.obj+
- objects\dirbrk.obj+
- objects\runargv.obj+
- objects\arlib.obj+
- objects\_chdir.obj+
- objects\switchar.obj+
- objects\rmprq.obj+
- objects\tee.obj+
- objects\tempnam.obj+
- objects\environ.obj
- SHAR_EOF
- chmod 0640 dmake/msdos/ztcdos/obj.rsp ||
- echo 'restore of dmake/msdos/ztcdos/obj.rsp failed'
- Wc_c="`wc -c < 'dmake/msdos/ztcdos/obj.rsp'`"
- test 614 -eq "$Wc_c" ||
- echo 'dmake/msdos/ztcdos/obj.rsp: original size 614, current size' "$Wc_c"
- rm -f _shar_wnt_.tmp
- fi
- # ============= dmake/msdos/ztcdos/objswp.rsp ==============
- if test -f 'dmake/msdos/ztcdos/objswp.rsp' -a X"$1" != X"-c"; then
- echo 'x - skipping dmake/msdos/ztcdos/objswp.rsp (File already exists)'
- rm -f _shar_wnt_.tmp
- else
- > _shar_wnt_.tmp
- sed 's/^X//' << 'SHAR_EOF' > 'dmake/msdos/ztcdos/objswp.rsp' &&
- _swapl.obj+
- objects\infer.obj+
- objects\make.obj+
- objects\stat.obj+
- objects\expand.obj+
- objects\dmstring.obj+
- objects\hash.obj+
- objects\dag.obj+
- objects\dmake.obj+
- objects\path.obj+
- objects\imacs.obj+
- objects\sysintf.obj+
- objects\parse.obj+
- objects\getinp.obj+
- objects\quit.obj+
- objects\state.obj+
- objects\basename.obj+
- objects\dmdump.obj+
- objects\macparse.obj+
- objects\rulparse.obj+
- objects\percent.obj+
- objects\function.obj+
- objects\ruletab.obj+
- objects\dirbrk.obj+
- objects\runargv.obj+
- objects\arlib.obj+
- objects\_chdir.obj+
- objects\switchar.obj+
- objects\rmprq.obj+
- objects\tee.obj+
- objects\tempnam.obj+
- objects\environ.obj
- SHAR_EOF
- chmod 0640 dmake/msdos/ztcdos/objswp.rsp ||
- echo 'restore of dmake/msdos/ztcdos/objswp.rsp failed'
- Wc_c="`wc -c < 'dmake/msdos/ztcdos/objswp.rsp'`"
- test 626 -eq "$Wc_c" ||
- echo 'dmake/msdos/ztcdos/objswp.rsp: original size 626, current size' "$Wc_c"
- rm -f _shar_wnt_.tmp
- fi
- # ============= dmake/msdos/ztcdos/public.h ==============
- if test -f 'dmake/msdos/ztcdos/public.h' -a X"$1" != X"-c"; then
- echo 'x - skipping dmake/msdos/ztcdos/public.h (File already exists)'
- rm -f _shar_wnt_.tmp
- else
- > _shar_wnt_.tmp
- sed 's/^X//' << 'SHAR_EOF' > 'dmake/msdos/ztcdos/public.h' &&
- /* RCS -- $Header$
- -- WARNING -- This file is AUTOMATICALLY GENERATED DO NOT EDIT IT
- --
- -- SYNOPSIS -- Local functions exported to be visible by others.
- --
- -- DESCRIPTION
- -- This file is generated by 'genpub'. Function declarations
- -- that appear in this file are extracted by 'genpub' from
- -- source files. Any function in the source file whose definition
- -- appears like:
- --
- -- PUBLIC return_type
- -- function( arg_list );
- -- type_expr1 arg1;
- -- ...
- --
- -- has its definition extracted and a line of the form:
- --
- -- return_type function ANSI((type_expr1,type_expr2,...));
- --
- -- entered into the output file.
- --
- -- AUTHOR
- -- Dennis Vadura, dvadura@watdragon.uwaterloo.ca
- -- CS DEPT, University of Waterloo, Waterloo, Ont., Canada
- --
- -- COPYRIGHT
- -- Copyright (c) 1990 by Dennis Vadura. All rights reserved.
- --
- -- This program is free software; you can redistribute it and/or
- -- modify it under the terms of the GNU General Public License
- -- (version 1), as published by the Free Software Foundation, and
- -- found in the file 'LICENSE' included with this distribution.
- --
- -- This program is distributed in the hope that it will be useful,
- -- but WITHOUT ANY WARRANTY; without even the implied warrant of
- SHAR_EOF
- true || echo 'restore of dmake/msdos/ztcdos/public.h failed'
- fi
- echo 'End of part 26, continue with part 27'
- echo 27 > _shar_seq_.tmp
- exit 0
- exit 0 # Just in case...
-